package top.coolrainly.module.pb.controller.admin.theme.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import top.coolrainly.module.pb.dal.dataobject.theme.ThemeModelMetaDO;

import javax.validation.constraints.*;

@Schema(description = "管理后台 - 党建 主题新增/修改 Request VO")
@Data
public class ThemeSaveReqVO {

    @Schema(description = "主题id", requiredMode = Schema.RequiredMode.REQUIRED, example = "15592")
    private Long id;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotEmpty(message = "名称不能为空")
    private String name;

    @Schema(description = "介绍", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "介绍不能为空")
    private String introduce;

    @Schema(description = "备注", example = "随便")
    private String remark;

    @Schema(description = "网格数据", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "网格数据不能为空")
    private ThemeGridVO grid;

    @Schema(description = "模型地址", example = "https://www.iocoder.cn")
    private String modelUrl;

    @Schema(description = "模型元数据", example = "")
    @ExcelProperty("模型元数据")
    private ThemeModelMetaVO modelMeta;

}